package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.party.business.domain.TSyNr;
import com.party.business.mapper.TSyNrMapper;
import com.party.business.service.ITSyNrService;
import com.party.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 首页业务指南Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-13
 */
@Service
public class TSyNrServiceImpl extends ServiceImpl<TSyNrMapper, TSyNr>  implements ITSyNrService
{
    @Autowired
    private TSyNrMapper tSyNrMapper;

    /**
     * 查询首页业务指南
     *
     * @param id 首页业务指南主键
     * @return 首页业务指南
     */
    @Override
    public TSyNr selectTSyNrById(String id)
    {
        return tSyNrMapper.selectTSyNrById(id);
    }

    /**
     * 查询首页业务指南列表
     *
     * @param tSyNr 首页业务指南
     * @return 首页业务指南
     */
    @Override
    public List<TSyNr> selectTSyNrList(TSyNr tSyNr)
    {
        return tSyNrMapper.selectTSyNrList(tSyNr);
    }

    /**
     * 新增首页业务指南
     *
     * @param tSyNr 首页业务指南
     * @return 结果
     */
    @Override
    public int insertTSyNr(TSyNr tSyNr)
    {
                tSyNr.setCreateTime(DateUtils.getNowDate());
            return tSyNrMapper.insertTSyNr(tSyNr);
    }

    /**
     * 修改首页业务指南
     *
     * @param tSyNr 首页业务指南
     * @return 结果
     */
    @Override
    public int updateTSyNr(TSyNr tSyNr)
    {
                tSyNr.setUpdateTime(DateUtils.getNowDate());
        return tSyNrMapper.updateTSyNr(tSyNr);
    }

    /**
     * 批量删除首页业务指南
     *
     * @param ids 需要删除的首页业务指南主键
     * @return 结果
     */
    @Override
    public int deleteTSyNrByIds(String[] ids)
    {
        return tSyNrMapper.deleteTSyNrByIds(ids);
    }

    /**
     * 删除首页业务指南信息
     *
     * @param id 首页业务指南主键
     * @return 结果
     */
    @Override
    public int deleteTSyNrById(String id)
    {
        return tSyNrMapper.deleteTSyNrById(id);
    }
}
